<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

$this->title = '管理员详情';
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', '管理员管理'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>

<div class="row">
    <div class="col-lg-6">

        <?php
        echo DetailView::widget([
            'model' => $model,
            'attributes' => [
//                [
//                    'attribute'=>'logo',
//                    'value'=>function($model){return '<img src="'.$model->logo.'" style="width:100;height:100px">';},
//                    'format'=>'html'
//                ],
                'username',
            ],
        ]);
        ?>
    </div>
</div>
